﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kiosk
{
    public partial class StatusBar : UserControl
    {
        public StatusBar()
        {
            InitializeComponent();
        }

        public String Title
        {
            set
            {
                labelTitle.Text = value;
                labelTitle.Left = Size.Width / 2 - labelTitle.Width / 2;
            }
        }

        public String LeftText
        {
            set
            {
                labelLeft.Text = value;
            }
        }

        private void StatusBar_Paint(object sender, PaintEventArgs e)
        {
            labelClock.Text = DateTime.Now.ToShortTimeString();
        }

    }
}
